home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7856 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  970 b 

  1. Path: mudskipper.cac.psu.edu!user
  2. From: fcusack@tdx.org (frank.)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: for loop question
  5. Date: Mon, 19 Feb 1996 07:17:12 -0400
  6. Organization: Psychic Enemies Network
  7. Message-ID: <fcusack-1902960717120001@mudskipper.cac.psu.edu>
  8. References: <4emqf8$470@opal.southwind.net> <4f1kud$9rk@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: mudskipper.cac.psu.edu
  10.  
  11. In article <4f1kud$9rk@newsbf02.news.aol.com>, recursion@aol.com
  12. (Recursion) wrote:
  13.  
  14. [...]
  15. >  
  16. > int i;
  17. > for (i=10;i==10;i++) the program would enter the loop only one time and
  18. > would print out your data.
  19. > int i;
  20. > for(i=0;i--10;i++) will never execute because i will never equal 10.
  21.  
  22. would never execute becase i--10 is not a legal construct.
  23. ~Frank
  24.  -- I am Pentium of Borg.  Division is futile.  You will be approximated. --
  25.  --   If you build it, they will come --> http://www.tdx.org/~fcusack/    --
  26.  -- PGP key fingerprint: 01 C0 C0 B9 CC 78 67 0F  3F 64 80 65 8B 0F F9 EA --
  27.